package cn.slipi.admin.common.form;

import cn.slipi.admin.common.contants.WebConstants;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * 分页查询FORM
 *
 * @author lee
 */
@Data
public class BaseForm {

    @Range(min = 1, max = Integer.MAX_VALUE, message = "当前页码不合法")
    private int pageNo = 1;

    @Range(min = 1, max = WebConstants.MAX_PAGE_SIZE, message = "每页记录数不合法")
    private int pageSize = 20;
}
